package net.ujacha.mvc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.ujacha.mvc.dao.BoardDAO;
import net.ujacha.mvc.model.Board;
import net.ujacha.mvc.service.BoardService;

@Service
public class BoardServiceImpl implements BoardService {

	@Autowired
	BoardDAO boardDAO;
	
	@Override
	public List<Board> getList(Board board) {
		return boardDAO.selectList(board);
	}

	@Override
	public Board get(Board board) {
		
		return boardDAO.select(board);
	}

	@Override
	public void insert(Board board) {
		boardDAO.insert(board);
		
	}

	@Override
	public void update(Board board) {
		boardDAO.update(board);
		
	}

	@Override
	public void delete(Board board) {
		boardDAO.delete(board);
		
	}

}
